package cn.beyond.vehicleManagement.service;

import cn.beyond.vehicleManagement.dao.VehicleProcurementDao;
import cn.beyond.vehicleManagement.pojo.VehicleProcurement;

import java.util.List;
import java.util.Map;

public class VehicleProcurementService {
    VehicleProcurementDao dao=new VehicleProcurementDao();

    public int addVehicleProcurement(VehicleProcurement vehicleProcurement){
        return    dao.addVehicleProcurement(vehicleProcurement);
    }

    /**
     * 删除用户
     * @param obj
     * @param column
     * @return
     */
    public int delete(Object obj,String column){
        return dao.delete(obj,column);
    }

    /**
     * 修改用户

     * @return
     */
    public int update(VehicleProcurement vehicleProcurement){
       return dao.update(vehicleProcurement);
    }

    /**
     * 查询结果返回单条记录
     * @param selectmap
     * @return
     */
    public VehicleProcurement selectUserByOne(VehicleProcurement vehicleProcurement, Map<String, Object> selectmap) {
        return dao.selectUserByOne(vehicleProcurement, selectmap);

    }
    /**
     * 查询结果返回多条记录
     * @param selectmap
     * @return
     */
    public List<VehicleProcurement> selectUserByCondition(VehicleProcurement vehicleProcurement, Map<String, Object> selectmap){
       return dao.selectUserByCondition(vehicleProcurement,selectmap);
    }

}
